import request from '@/utils/request'

// 随机密码因子
export function getRandom() {
  return request({
    url: '/system/llianPay/getRandom',
    method: 'post'
  })
}

// 提交个人开户
export function submitOpenAccount(data) {
  return request({
    url: '/system/acddShopMessage/submitOpenAccount',
    method: 'post',
    data
  })
}


// 修改个人银行卡
export function updateOenAccountMessage(data) {
  return request({
    url: '/system/acddShopMessage/updateOenAccountMessage',
    method: 'post',
    data
  })
}

// 修改企业开户银行卡
export function updateEnterpriseOenAccountMessage(data) {
  return request({
    url: '/system/acddShopMessage/updateEnterpriseOenAccountMessage',
    method: 'post',
    data
  })
}

// 个人开户验证
export function personOpenVerify(data) {
  return request({
    url: '/system/acddShopMessage/openAccountVerify',
    method: 'post',
    data
  })
}


// 绑定手机验证码申请
export function getLpayCode(data) {
  return request({
    url: '/system/llianPay/phoneVerifyCodeApply',
    method: 'post',
    data
  })
}


// 修改支付密码
export function changePassword(data) {
  return request({
    url: '/system/llianPay/changePassword',
    method: 'post',
    data
  })
}

// 找回密码申请
export function findPasswordApply() {
  return request({
    url: '/system/llianPay/findPasswordApply',
    method: 'post'
  })
}

// 找回密码验证
export function findPasswordVerify(data) {
  return request({
    url: '/system/llianPay/findPasswordVerify',
    method: 'post',
    data
  })
}

// 银行编号
export function getBankCode(params) {
  return request({
    url: '/system/acddShopMessage/getBankCode',
    method: 'get',
    params
  })
}

// 城市列表
export function getCityList() {
  return request({
    url: '/system/acddShopMessage/cityList',
    method: 'get'
  })
}

// 大额行号
export function getCnapsCode(params) {
  return request({
    url: '/system/acddShopMessage/cnapsCode',
    method: 'get',
    params
  })
}

// 提交商户开户
export function submitShopOpenAccount(data) {
  return request({
    url: '/system/acddShopMessage/enterpriseOpenAccountApply',
    method: 'post',
    data
  })
}

// 企业开户验证
export function shopOpenVerify(data) {
  return request({
    url: '/system/acddShopMessage/enterpriseOpenAccountVerify',
    method: 'post',
    data
  })
}


// 重新开户
export function cancelApply(data) {
  return request({
    url: '/system/acddShopMessage/cancelApply',
    method: 'post',
    data
  })
}




export function sendCode() {
  return request({
    url: '/system/acddShopMessage/sendCode',
    method: 'get'
  })
}


export function verifyCode(params) {
  return request({
    url: '/system/acddShopMessage/verifyCode',
    method: 'get',
    params
  })
}